#ifndef __AS1217_H__
#define __AS1217_H__


#include "as1217_usart.h"


//发送后模式定义
typedef enum TxMode
{
	Tx_Mode_D0 = 0xD0,		//发送完成后进入正常接收模式
	Tx_Mode_D1 = 0xD1		//发送完成后进入低功耗模式
}TxModeType;



void AS1217_param_init( void );
void AS1217_read_param( uint8_t *pReadBuffer );
uint8_t AS1217_shook_hands( void );
void AS1217_read_version( uint8_t *pReadBuffer );
void AS1217_reset( void );
void AS1217_set_low_power( void );
void AS1217_tx_packet( uint8_t *pTxBuff, uint8_t Length );
void AS1217_tx_packet_fixed_point( TxModeType TxMode, uint8_t Addr_H, uint8_t Addr_L, uint8_t *pTxBuff, uint8_t Length );
uint8_t AS1217_rx_packet( uint8_t *pRxBuff );



#endif
